package com.kehutong.applet.service;

import org.coraframework.json.JSONObject;
import org.coraframework.orm.jdbc.Page;

import java.io.Serializable;
import java.util.List;

/**
 * @program: kht
 * @description: 总服务接口
 * @author: joneron
 * @create: 2021/5/21
 **/
public interface BaseService<T extends Serializable> {

    Page<T> findPage(JSONObject jsonObject);

    List<T> findList(JSONObject jsonObject);

    Integer save(T t);

    Integer update(T t);

    Integer deleteById(String id);

}
